package com.gfm.story.dao;



import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.gfm.story.entity.dict.Dictionary;

import java.util.List;
import java.util.Map;

public interface DictionaryDao extends BaseMapper<Dictionary> {

    /**
     * 获取所有数据字典列表
     *
     * @param map
     * @return
     */
    public List<Map> selectSysDictionaryPage(Map<String, Object> map);

    /**
     * 获取所有数据字典总数
     *
     * @param map
     * @return
     */
    public int selectSysDictionaryPageCount(Map<String, Object> map);


    Dictionary selectCode(Dictionary param);

    List<Dictionary> selectDictByCode(Dictionary dictionary);
}
